package min.chapter.three;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ByNameAcquisition {
	public static void main(String[] args) {
		AbstractApplicationContext context = new ClassPathXmlApplicationContext("min/chapter/three/Byname.xml");
		ByNameUserService service = (ByNameUserService) context.getBean("userService");
		System.out.println(service.getUserData());
	}

}
